package cn.highedu.entity;

import java.io.Serializable;

/**
 * 账号实体类
 * 提供四个属性：name, password, email, gender
 * 默认的构造方法
 * 包含所有属性的构造方法
 * get和set方法
 * toString方法
 */
public class Account implements Serializable {
    private String name;
    private String password;
    private String email;
    private String gender;

    public Account() {
    }

    public Account(String name, String password, String email, String gender) {
        this.name = name;
        this.password = password;
        this.email = email;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Account{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }
}
